package org.dlx.drpc.core.client;

import io.netty.channel.ChannelPromise;

public class Promise{
    private Object _result;

    private ChannelPromise _promise;

    public Promise(ChannelPromise p) {
        _promise = p;
    }

    public Object getResult()
    {
        return _result;
    }

    public void setResult(Object result)
    {
        _result = result;
    }

    public ChannelPromise getPromise()
    {
        return _promise;
    }

    public void setPromise(ChannelPromise promise)
    {
        _promise = promise;
    }
}
